package com.sll.hosptials.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色信息
 * @TableName role_info
 */
@TableName(value ="role_info")
@Data
public class RoleInfo implements Serializable {

    @ApiModelProperty("角色id")
    @TableId(type = IdType.AUTO)
    private Long roleId;

    @ApiModelProperty("角色名")
    private String roleName;


    @ApiModelProperty("角色编码")
    private String roleCode;

    @TableLogic
    @ApiModelProperty("逻辑删除")
    private Integer deleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDateTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDateTime;

    /**
     * 是否生效
     */
    private Integer enable;

    @ApiModelProperty("描述")
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}